package com.ro.common.task;

import com.ro.model.blog.BlogService;

import java.text.SimpleDateFormat;
import java.util.Locale;
import java.util.TimerTask;
import java.util.logging.Logger;

public class TaskService extends TimerTask {
    @Override
    public void run() {

    }

//    private Logger logger = Logger.getLogger(this.getClass().getName());
//    static BlogService service = new BlogService();
//    private int index = 0;
//    static final SimpleDateFormat sdf = new SimpleDateFormat("", Locale.SIMPLIFIED_CHINESE);
//
//    @Override
//    public void run() {
//        sdf.applyPattern("yyyy年MM月dd日 HH时mm分ss秒");
//        logger.info(">>>>>>>>----- 开始执行第 " + index + " 次刷新...当前时间为: " + sdf.format(System.currentTimeMillis()) + " ----->>>>>>>>");
//        service.refreshCache();
//        logger.info(">>>>>>>>----- 执行第 " + index + " 次刷新结束...当前时间为: " + sdf.format(System.currentTimeMillis()) + " ----->>>>>>>>");
//    }
}
